<?php

namespace App\Models;

class UserInfoDetail extends Model
{
    protected $table = 'ucenter_user_info_detail';
    public $timestamps = false;

    public function userInfo()
    {
        return $this->belongsTo(UserInfo::class, 'user_name', 'user_name');
    }

    public static function getByUserMobile(string $user_mobile) : UserInfoDetail
    {
        return self::whereUserMobile($user_mobile)->first();
    }
}
